<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Http\Managers\CompanyManager;

class WebServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {

    }

    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
      $this->app->bind('CompanyManager', function($app){
        return new CompanyManager($app->make('cache'), $app->make('auth'));
      });
    }
}
